home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / communic / pcmail / daemon / daemon.ins next >
Encoding:
Text File  |  1994-06-05  |  4.2 KB  |  119 lines

  1. @(#) DAEMON.ins 1.3 90/01/06 19:47:10
  2.  
  3.  
  4.  
  5. This document describes how to install the daemon software on the file
  6.  
  7. server that exports the per-user mail directories, and how to adapt the
  8.  
  9. local sendmail.cf file.
  10.  
  11.  
  12.  
  13. Operation
  14.  
  15. =========
  16.  
  17.  
  18.  
  19. The per-user mail directories are mounted from a file server.  The UUCP
  20.  
  21. file transfer functions of the pc-mail cico program are taken over by
  22.  
  23. the following two programs that run on the file server:
  24.  
  25.  
  26.  
  27. pc-mail:    deliver mail to a user's mail directory (the receiving
  28.  
  29.         function of the cico program). This program is intended 
  30.  
  31.         to be called by sendmail.
  32.  
  33.  
  34.  
  35. pc-maild:    scan user mail directories for unsent mail, and pipe it 
  36.  
  37.         through the UNIX rmail command (the sending function of 
  38.  
  39.         the cico program). This program should be started at
  40.  
  41.         system boot time.
  42.  
  43.  
  44.  
  45. All per-user mail directories live below the pc-mail spool directory
  46.  
  47. (/var/spool/pc-mail by default).
  48.  
  49.  
  50.  
  51. Both programs report all problems via the syslog facility. Most error
  52.  
  53. conditions case the programs to retry at a later time.
  54.  
  55.  
  56.  
  57. Installation on the server
  58.  
  59. ==========================
  60.  
  61.  
  62.  
  63. Build the pc-mail and pc-maild programs.  In the Makefile, you should
  64.  
  65. specify the location of the executable programs and the pc-mail spool
  66.  
  67. directory, and how often the daemon program will scan user directories
  68.  
  69. for unsent mail.  You will probably have to do a `make depend' before
  70.  
  71. you can `make' the programs.
  72.  
  73.  
  74.  
  75. Execute the following command to create the pc-mail spool directory, and
  76.  
  77. to install the pc-mail and pc-maild programs.  You must be root.
  78.  
  79.  
  80.  
  81.     % make install
  82.  
  83.  
  84.  
  85. The output from the "make" command will depend on how you specified the
  86.  
  87. path names in the Makefile:
  88.  
  89.  
  90.  
  91.     mkdir /var/spool/pc-mail
  92.  
  93.     chmod 755 /var/spool/pc-mail
  94.  
  95.     cp pc-mail pc-maild /usr/local/lib
  96.  
  97.     chown root /usr/local/lib/pc-mail
  98.  
  99.     chmod u+s /usr/local/lib/pc-mail
  100.  
  101.  
  102.  
  103. Execute the following command if you wish to install the manual pages.
  104.  
  105.  
  106.  
  107.     % make installman
  108.  
  109.  
  110.  
  111. Again, the output from make will depend on what you specified in the
  112.  
  113. Makefile:
  114.  
  115.  
  116.  
  117.     cp pc-mail.8 pc-maild.8 /usr/local/man/man8
  118.  
  119.  
  120.  
  121. Add a line with the command
  122.  
  123.  
  124.  
  125.     /usr/local/lib/pc-maild
  126.  
  127.  
  128.  
  129. to the file /etc/rc.local (the exact name of the rc script depends on
  130.  
  131. your version of unix, and the exact path name of the pc-maild program
  132.  
  133. depends on where you installed it).
  134.  
  135.  
  136.  
  137. For now, you will have to start the pc-maild program by hand (unless
  138.  
  139. you wish to reboot the machine).
  140.  
  141.  
  142.  
  143. Add to the sendmail.cf file a line that looks like:
  144.  
  145.  
  146.  
  147.     Mpc,    P=/usr/local/lib/pc-mail, F=lsDFMn, S=xxx, R=yyy, A=pc-mail $u
  148.  
  149.  
  150.  
  151. Where xxx and yyy may be the same rewriting rules as used for the local
  152.  
  153. mailer (usually defined with the "Mlocal" line). The exact path name of
  154.  
  155. the pc-mail executable depends on what you specified in the Makefile.
  156.  
  157.  
  158.  
  159. In the file sendmail.cf, at the end of ruleset S0, but just BEFORE the
  160.  
  161. local mailer will be invoked (something like "R$* $#local $:$1"), add a
  162.  
  163. line with
  164.  
  165.  
  166.  
  167.     R $=X            $#pc $:$1
  168.  
  169.  
  170.  
  171. Use a different letter if X is already in use.  
  172.  
  173.  
  174.  
  175. There are two ways to define X as a list of pc-mail users.  The list can
  176.  
  177. be wired into the sendmail.cf file, e.g.:
  178.  
  179.  
  180.  
  181.     CXjohn marsha
  182.  
  183.  
  184.  
  185. Multiple usernames on a line, and multiple CX lines are allowed.  
  186.  
  187.  
  188.  
  189. A better way is to have sendmail read the list from an external file, by
  190.  
  191. putting the following line into the sendmail.cf file:
  192.  
  193.  
  194.  
  195.     FX/etc/pc-mail-users %s
  196.  
  197.  
  198.  
  199. The /etc/pc-mail-users file should contain only a single login name per
  200.  
  201. line.
  202.  
  203.  
  204.  
  205. Each time you change the list of pc-mail users (either in sendmail.cf,
  206.  
  207. or in the /etc/pc-mail-users file) you will have to kill the sendmail
  208.  
  209. daemon and restart it.
  210.  
  211.  
  212.  
  213. Note that the sendmail program ON THE NFS SERVER will never read the
  214.  
  215. pc-mail user's .forward file.  That file will still be useful, however,
  216.  
  217. if the user's home directory is exported to OTHER hosts running
  218.  
  219. sendmail.  In that case you will want to create a .forward file in the
  220.  
  221. user's home directory containing
  222.  
  223.  
  224.  
  225.     username@fully-qualified-hostname-of-the-server
  226.  
  227.  
  228.  
  229. The same effect can be achieved, of course, by adding an entry to the
  230.  
  231. network-wide alias data base:
  232.  
  233.  
  234.  
  235.     username:    username@server
  236.  
  237.